package com.hc.service.impl;

import com.hc.dao.UserDao;
import com.hc.entity.User;
import com.hc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserDao userDao;

    @Override
    public User getUserByUsername(String username) {
        return userDao.selectByName(username);
    }

}
